<%--
  Created by IntelliJ IDEA.
  User: 小玄
  Date: 2022.09.02
  Time: 08:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../common.jsp"%>
<html>
<head>
    <title>日志监控</title>
</head>
<body>
<table id="demo" lay-filter="test"></table>

<script>
    layui.use(['table'], function () {
        var table = layui.table;

        table.render({
            elem: '#demo'
            , height: 600
            , url: '${pageContext.request.contextPath}/logMonitor/queryAll.do'
            , page: true
            , limit: 10
            , limits: [10, 15, 20, 25, 30, 100]
            , cols: [[
                {type: 'checkbox', fixed: 'left',hide:true}
                , {field: 'id', title: '日志编号', width: 120, sort: true, fixed: 'left', align: 'center'}
                , {field: 'userName', title: '用户名', width: 120, align: 'center'}
                , {field: 'ip', title: 'IP地址', width: 120, align: 'center'}
                , {field: 'className', title: '类名', width: 400}
                , {field: 'methodName', title: '方法名', width: 180}
                , {field: 'params', title: '参数', width: 180, align: 'center'}
                , {field: 'createTime', title: '创建时间', width: 180}
            ]]
        });

    });

</script>

</body>
</html>
